//为种类添加专家
function showNewWindow(name){
	var Url = 'getProfessorListAction.action?area='+name+"&random="+Math.random();
	var dialog = "dialogWidth:450px;dialogHeight:450px;help:no;scroll:yes;center:yes;status:no;";
	var ret = window.showModalDialog(Url,window,dialog);
	if(ret==undefined||ret==""){
	//	alert("未选择专家");
		ymPrompt.alert({message:'未选择专家',title:'系统提示',showMask:true,maskAlphaColor:'#ffffff',maskAlpha:'0',width:200,height:120});
		return;
	}
	var pid =$("#professior").val();
	var param = name+";"+ret;
	if(pid==""){
		pid = param;
	}else{
		pid = param+"<>"+pid;
	}
	$("#professior").val(pid);
	//alert(pid);
	var s = $("#"+name).html("<font color='red'>已分配</font>")
}
//得到选择的专家
function getProfessor(){
	var pid = "";
	var id = $("input[name='professon']").each(function (){
		if($(this).attr("checked") == true){
			if(pid==""){
				pid = $(this).val();
			}else{
			pid = $(this).val()+","+pid;
			}
		}
	})
	window.returnValue = pid;
	window.close();
}